<%--
  
  User: Administrator
  Date: 2018/11/30
  Time: 9:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>服务反馈</title>
    <link rel="stylesheet" href="/static/commons/layui/css/layui.css"/>
    <link rel="stylesheet" href="/static/css/public.css"/>
</head>
<body class="childrenBody">


<div class="layui-inline">
    <div class="layui-input-inline">
        <div class="layui-form-item">
            <label class="layui-form-label layui-bg-green layui-center">客户名称</label>
            <div class="layui-input-block">
                <input style="width: 200px" type="text" class="layui-input customerName" readonly/>
            </div>
        </div>
    </div>
    <div class="layui-input-inline">
        <div class="layui-form-item">
            <label class="layui-form-label layui-bg-green layui-center">服务类型</label>
            <div class="layui-input-block">
                <input style="width: 200px" type="text" class="layui-input serviceType" readonly/>
            </div>
        </div>
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label layui-bg-green layui-center">概要</label>
    <div class="layui-input-block">
        <input type="text"  class="layui-input outline" readonly/>
    </div>
</div>

<div class="layui-inline">
    <div class="layui-input-inline">
        <div class="layui-form-item">
            <label class="layui-form-label layui-bg-green layui-center">创建人</label>
            <div class="layui-input-block">
                <input style="width: 200px" type="text" class="layui-input creationName" readonly/>
            </div>
        </div>
    </div>
    <div class="layui-input-inline">
        <div class="layui-form-item">
            <label class="layui-form-label layui-bg-green layui-center">创建时间</label>
            <div class="layui-input-block">
                <input style="width: 200px" type="text" class="layui-input creationTime" readonly/>
            </div>
        </div>
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label layui-bg-green layui-center">服务请求</label>
    <div class="layui-input-block">
        <textarea   class="layui-textarea serviceReq" readonly></textarea>
    </div>
</div>


<div class="layui-inline">
    <div class="layui-input-inline">
        <div class="layui-form-item">
            <label class="layui-form-label layui-bg-green layui-center">分配给</label>
            <div class="layui-input-block">
                <input style="width: 200px" type="text" class="layui-input userName" readonly/>
            </div>
        </div>
    </div>
    <div class="layui-input-inline">
        <div class="layui-form-item">
            <label class="layui-form-label layui-bg-green layui-center">分配时间</label>
            <div class="layui-input-block">
                <input style="width: 200px" type="text" class="layui-input allotTime" readonly/>
            </div>
        </div>
    </div>
</div>
<div class="layui-form-item ">
    <label class="layui-form-label layui-bg-green layui-center">服务处理</label>
    <div class="layui-input-block">
        <textarea name="serviceHandle" class="layui-textarea serviceHandle" readonly></textarea>
    </div>
</div>

<div class="layui-inline">
    <div class="layui-input-inline">
        <div class="layui-form-item ">
            <label class="layui-form-label layui-bg-green layui-center">处理人</label>
            <div class="layui-input-block">
                <input style="width: 200px" type="text" name="handleName" class="layui-input handleName" readonly/>
            </div>
        </div>
    </div>
    <div class="layui-input-inline">
        <div class="layui-form-item ">
            <label class="layui-form-label layui-bg-green layui-center">处理时间</label>
            <div class="layui-input-block">
                <input type="text" style="width: 200px" name="handleTime" class="layui-input handleTime" readonly/>
            </div>
        </div>
    </div>
</div>


<form class="layui-form" id="feedbackForm">
    <div class="layui-inline">
        <div class="layui-input-inline">
            <div class="layui-form-item">
                <label class="layui-form-label layui-bg-green layui-center">编号</label>
                <div class="layui-input-block">
                    <input style="width: 200px" type="text" name="serviceId" class="layui-input num" readonly/>
                </div>
            </div>
        </div>
        <div class="layui-inline">

            <div class="layui-form-item">
                <label class="layui-form-label layui-bg-green layui-center">状态</label>
                <div class="layui-input-block">
                    <input style="width: 200px" type="text" class="layui-input status" readonly/>
                </div>
            </div>

        </div>
    </div>

    <div class="layui-form-item ">
        <label class="layui-form-label layui-bg-green layui-center">处理结果</label>
        <div class="layui-input-block">
            <textarea name="handleResult" lay-verify="required" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item ">
        <label class="layui-form-label layui-bg-green layui-center">满意度</label>
        <div class="layui-input-block">
            <div id="love"></div>
            <input id="number" type="text" name="satisfaction" value="" style="display:none"/>
        </div>
    </div>

</form>

<script type="text/javascript" src="static/commons/layui/layui.js"></script>
<script type="text/javascript" src="static/js/serviceManagement/feedback-service.js"></script>

<script>
    layui.use(['rate', 'jquery'], function () {
        let rate = layui.rate,
            $ = layui.jquery;
        //渲染
        let ins1 = rate.render({
            elem: '#love',
            length: 5,
            value: 0,
            theme: '#FFB800',
            text: true,
            setText: function (value) {
                var arrs = {
                    '0': '请评分',
                    '1': '极差'
                    , '2': '差'
                    , '3': '中等'
                    , '4': '好'
                    , '5': '非常好'
                };
                this.span.text(arrs[value]);
                $("#number").val(value);
            }
        });
    });
</script>
</body>
</html>